package com.lse_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 项目组成员审核
 * </p>
 *
 * @author 祁雪
 * @since 2020-05-11
 */
@Getter
@Setter
public class GroupUserAudit implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 项目组ID
     */
    private Integer groupId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 是否审核 0.正在审批 1.已同意 2.已拒绝
     */
    private Integer isJoin;

    /**
     * 邀请者用户ID
     */
    private String inviter;

    /**
     * 创建日期
     */
    private Date createTime;

    /**
     * 用户信息
     */
    @TableField(exist = false)
    private UserInfo userInfo;

    /**
     * 邀请者用户信息
     */
    @TableField(exist = false)
    private UserInfo inviterInfo;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getIsJoin() {
        return isJoin;
    }

    public void setIsJoin(Integer isJoin) {
        this.isJoin = isJoin;
    }

    public String getInviter() {
        return inviter;
    }

    public void setInviter(String inviter) {
        this.inviter = inviter;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "GroupUserAudit{" +
                "id=" + id +
                ", groupId=" + groupId +
                ", userId=" + userId +
                ", isJoin=" + isJoin +
                ", inviter=" + inviter +
                ", createTime=" + createTime +
                "}";
    }
}
